<?php



use think\facade\Route;
//不需要鉴权
//Route::get('api/:version/index/:function','api/:version.index/:function')->middleware('CrossDomain');

//需要鉴权
//Route::rule('api/:version/:controller/:function','api/:version.:controller/:function')->middleware(['CrossDomain','ApiAuth']);
